package com.maizhe.dao;

import com.maizhe.entity.Resource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {

    List<Resource> findMenu(@Param("resourceType") Integer resourceType);

    int saveMenu(Resource r);

    Resource findResourceById(@Param("id") String id);

    int editMenu(Resource r);

    List<String> findChildrenMenuId(@Param("id") String id);

    int batchRemoveMenus(List<String> list);

    List<String> findMenuIds(String id);

    List<Resource> batchSelect(List<String> list);
}